package base.utils;

public class ArrayUitls {

    public static String arr2String(int[] list){
        StringBuffer buffer = new StringBuffer();

        if (null == list || list.length <1) return null;

        buffer.append("{");
        for (int i =0 ; i < list.length ; i++){
            int item = list[i];
            if (i == list.length-1){
                buffer.append(item);
            }else {
                buffer.append(item+",");
            }
        }

        buffer.append("}");
        return buffer.toString();
    }

}
